@section('meta')
    <style>
        body{background-color: #fff;}
        .modal-content{display: unset;}
    </style>
@endsection
@include('Home.User.Common._meta')
<!----  跟进： 客户  ---->
<div class="modal-content" id="addNew-content2">
    <div class="layui-form modal-second-info" action="">
        <div class="layui-form-item all-client">
            <div class="selector-title">款项操作记录</div>
            <table class="all-client-table">
                <thead>
                <tr>
                    <th>款项时间</th>
                    <th>款项类型</th>
                    <th>款项金额</th>
                    <th>款项说明</th>
                    <th>操作时间</th>
                </tr>
                </thead>
                <tbody>
                @foreach($obj->all_schedule as $v)
                    <tr>
                        <td data-label="款项时间">{{$v->time}}</td>
                        <td data-label="款项类型">{{$v->type_anme}}</td>
                        <td data-label="款项金额">{{$v->receipts}}</td>
                        <td data-label="款项说明">{{$v->describe}}</td>
                        <td data-label="操作时间">{{$v->created_at}}</td>
                    </tr>
                @endforeach
                </tbody>
            </table>
        </div>
    </div>
    {{--超级管理员  ||  创建者  ||  归属者--}}
    @if($obj->permission)
        <form class="layui-form modal-client-info modal-second-info" action="" id="form-user" lay-filter="form-user">
            <div class="modal-func-btns">
                <a href="javascript:;" class="modal-save-btn" onclick="subForm('{{route('add_finance_schedule',$obj->id)}}')" title="保存"><i class="icon icon-save"></i></a>
                <a href="javascript:location.replace(location.href);" class="modal-edit-btn" title="重置"><i class="icon icon-edit"></i></a>
            </div>
            @include('Home.User.Common._msg')
            <div class="selector-title" style="margin-bottom: 15px;">新增款项操作记录</div>
            <div class="layui-form-item">
                <label class="layui-form-label"><span class="red">*</span>款项时间</label>
                <div class="layui-input-block">
                    <input type="text" name="time" id="time" lay-verify="required" placeholder="请输入款项时间" value="" autocomplete="off" class="layui-input">
                </div>
            </div>
            <div class="layui-form-item">
                <label class="layui-form-label"><span class="red">*</span>款项类型</label>
                <div class="layui-input-block">
                    <input type="radio" name="type" value="1" title="收款" checked>
                    <input type="radio" name="type" value="0" title="扣款">
                </div>
            </div>
            <div class="layui-form-item">
                <label class="layui-form-label"><span class="red">*</span>款项金额</label>
                <div class="layui-input-block">
                    <input type="text" name="receipts" value="" lay-verify="required" placeholder="请输入款项金额"  class="layui-input">
                </div>
            </div>
            <div class="layui-form-item layui-form-text">
                <label class="layui-form-label">款项说明</label>
                <div class="layui-input-block">
                    <textarea placeholder="请输入款项说明" name="describe" class="layui-textarea"></textarea>
                </div>
            </div>
        </form>
    @endif
</div>
@section('footer')
    <script>
        layui.use(['laydate','form'], function(){
            var laydate = layui.laydate;

            //执行一个laydate实例
            laydate.render({
                elem: '#time', //指定元素
                type: 'datetime'
            });
        });
    </script>
@endsection
@include('Home.User.Common._footer')
@include('Home.User.Common._form')